
<%
	DIRECTIVE SAFE_OUTPUT_OPEN;
%>
<link rel="stylesheet" href="${plugin}/form/jQuery-Validation-Engine/css/validationEngine.jquery.css" type="text/css"/>
<link rel="stylesheet" href="${plugin}/form/jQuery-Validation-Engine/css/template.css" type="text/css"/>
<link rel="stylesheet" type="text/css" media="screen"  href="${plugin}/ace/assets/css/jquery-ui.min.css" />
<link rel="stylesheet" href="${plugin}/tool/icheck/skins/square/blue.css" rel="stylesheet" />
<link rel="stylesheet" href="${ctx}/static/fw/css/datatable.css" />
<script type="text/javascript" src="${plugin}/tool/icheck/icheck.min.js"></script>
<script type="text/javascript" src="${ctx}/static/fw/js/fw-form.js"></script>
<link rel="stylesheet" href="${plugin}/tool/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" type="text/css" media="screen" href="${plugin}/grid/jqgrid/css/ui.jqgrid.css" />
<link rel="stylesheet" href="${acePath}/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
<!--[if lte IE 9]>
	<link rel="stylesheet" href="${acePath}/assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
<![endif]-->
<link rel="stylesheet" href="${acePath}/assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="${acePath}/assets/css/ace-rtl.min.css" />
<style>
<!--
.ui-jqgrid .ui-jqgrid-htable .ui-th-div{
height: auto;
}
.ui-th-div{
text-align: center;
}
-->
</style>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.core.min.js"></script>
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.exedit.min.js"></script>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"str"
		,modelName:"组织机构"
		,modelFlag:"data"
		}
</script> 
<script type="text/javascript" src="${ctx}/static/fw/js/fw-tree.js"></script>
<script type="text/javascript" src="${plugin}/grid/jqgrid/js/jquery.jqGrid.js"></script>
<script type="text/javascript" src="${plugin}/grid/jqgrid/js/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="${ctx}/static/fw/js/fw-jqgrid.js"></script>
<script type="text/javascript" src="${ctx}/static/js/str/data/index.js"></script></script>
<div class="row">
	<div class="col-xs-12">
		<div class="col-xs-2">
		 <form action="" id="treeForm" class="form-horizontal treeForm" role="form">
			<div class="widget-box" style="border-color: #99bce8;">
				<div class="widget-header" style="border-color: #99bce8;padding: 0px">
					<h4 class="widget-title lighter smaller">库表</h4>
					<span class="widget-toolbar">
						<a href="#" id="reload_tree" data-action="">
							<i class="ace-icon fa fa-refresh"></i>
						</a>
					</span>
				</div>
				<div class="widget-body">
					<div class="widget-main padding-8">
						<input type="hidden" name="id">
				        <div class="zTreeDemoBackground left"  id="treeDiv" style="overflow: auto;">
							<ul id="treeFormztree" class="ztree"></ul>
						</div> 
					</div>
				</div>
			</div>
		</form>
		</div>
		<div class="col-xs-10"> 
		     <div class="page-header" id="condition">
		  		<div class="row fw-margin">
		  		    <div class="col-xs-10">
		  		    <div class="alert alert-info">
						<button type="button" class="close" data-dismiss="alert">
							<i class="ace-icon fa fa-times"></i>
						</button>
		
						<strong>
							<i class="ace-icon fa"></i>
							提示：
						</strong>
						参数值前面或后面加“*”，即可模糊检索，如“*name*”,或“name*”。
						<br>
					</div>
					</div>
		  			<div class="col-xs-12">
		  				<form id="searchForm" action="${ctx}/str/data/query?_style=jq" class="form-inline" role="form">
		  				 <input type="hidden" id="idTypeCode"  value="${t.vo.idTypeCode}">
						  <input type="hidden" id="tableId" name="tableId" value="${tableId}">
		  					<div class="form-group" style="width: 400px">
						     <label for="fieldName">字段:</label>
						  	 <select placeholder="字段" id="fieldName" class="">
							</select>
							=
							<input type="text" id="fieldValue" class="validate[maxSize[20]] " name="" placeholder="参数值">
						  </div>
					</form>
		  			</div>
		  		</div>
		  		<div class="row clearfix form-actions">
		  			<div class="col-md-offset-5 col-md-6 fw-margin">
						  <div class="btn-group-xs ">
							  <button type="button" class="btn btn-primary btn-xs searchBtn">
							  	 <i class="ace-icon fa fa-search bigger-120"></i>查询
							   </button> 
							  <button type="reset" class="btn btn-primary btn-xs fw-margin-left resetBtn">
							  	 <i class="ace-icon fa fa-road bigger-120"></i>重置
							  </button>
						   </div>
					 </div>
		  		</div>
		  		<div class="row fw-margin-top toolbar" >
		  			<div class="col-xs-12 btn-toolbar">
		  			   <%if(shiro.hasPermission('data_table_data:add:'+t.vo.id)) {%>
		  			     <button type="button" class="btn btn-primary btn-xs addBtn" title="新增数据" data-toggle="modal" data-target="#myModal">
		  					<i class="ace-icon fa  fa-plus bigger-120"></i>新增 
		  				</button> 
		  				<%}%>
		  				<%if(shiro.hasPermission('data_table_data:delete:'+t.vo.id)) {%>
		  				<button type="button" class="btn btn-danger btn-xs delBtn" title="物理删除数据">
		  					<i class="ace-icon fa fa-trash-o bigger-120"></i>删除
		  				</button> 
		  				<%}%>
						<div class="pull-right">
			  			    <button type="button" val="0" class="btn btn-info btn-xs hideBtn" title="控制系统字段">
								<i class="ace-icon fa bigger-120">显示系统字段</i>
							</button>
			  			    <button type="button" id="gridHeightUp" class="btn btn-info btn-xs " title="增加高度">
								<i class="ace-icon fa bigger-120">增加高度</i>
							</button>
			  			    <button type="button" id="gridHeightDown" class="btn btn-info btn-xs " title="减小高度">
								<i class="ace-icon fa bigger-120">减小高度</i>
							</button>
						</div>
		  			</div>
		  		</div>
		</div>
		<div id="edit-dialog" class="hide">
		   <div class="col-md-12"  style="margin-top: 5px;margin-bottom: 5px">
		  		 <form action="" class="form-horizontal editForm" role="form">
		  		  <div class="alert alert-danger hide alert-dismissable" role="alert">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
						<i class="ace-icon fa fa-times"></i>
					</button>
					<strong>
					<i class="ace-icon fa fa-times"></i><span class="editForm-msg-head"></span></strong>
					<span class="editForm-msg"></span>
					<br />
				</div>
				<input type="hidden" name="id" value="${t.vo.id}">
		  		 <div class="col-md-12">
				  		   <div class="form-group  ">
						     <label class="required" for="nameEn">表名:</label>
						      <input type="text" oldval="${t.vo.name}" disabled="disabled" class="" value="${t.vo.name}" name="nameEn" placeholder="表名">
						  </div> 
						  <div class="form-group">
							<label class="required"  for="style">重建时机</label>
							<select placeholder="重建时机" name="style" class="col-xs-11 col-sm-11">
								<option value="1">立即重建</option>
								<option value="2">最近空闲时重建</option>
							</select>
					    </div>
		  		 </div>
				  </form>
		  	 </div>
		</div><!-- #dialog-message -->
		
		   <!-- 搜索框 end -->
		<div class="row">
			<div class="col-xs-12" id="searchTableDiv">
				<table id="searchTable"></table>
				<div id="searchTablePager"></div>
			</div>
		</div>
		</div> 
	</div> 
</div> 
